#include <ctime>
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
int **a;
int i;
int f;
int st;
a=new int*[5000];
int bubble(f);
{
    while (!EOF);
        a.append(int(i));
}
    st=clock();
    for (i=0; i<=:sizeof(a)-2;i++);{
        for y=i+1; y<=:sizeof(a)-1;i++);{
            if a[y]>a[y+1];{
                c=a[y];
                a[y]=a[y+1];
                a[y+1]=c;
            }
        }
    }
    end=clock();
    return round(end-st);
}
f1=fopen("m1_sorted.txt");
f2=fopen("m2_reverse.txt");
f3=fopen("m3_shuffle.txt");
cout<<"m1_sorted"<<bubble(f1)<<"milliseconds");
cout<<("m2_reverse"<<bubble(f2)<<"milliseconds");
cout<<("m3_shuffle"<<bubble(f3)<<"milliseconds");

